﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TA.DotNetUtils;
using TA.Turbo.Controls;

namespace TA.Turbo.Design
{
	public class PostScenarioIdLister : BaseControlIdLister
	{
		protected override bool ControlMatches(System.Web.UI.Control c)
		{
			return c is PostScenario;
		}
		protected override void AddIds(List<string> res, System.Web.UI.Control startingPoint)
		{
			base.AddIds(res, startingPoint);

			if (!res.Contains(TPage.EmptyPostScenarioId))
				res.Insert(0, TPage.EmptyPostScenarioId);
		}
		protected override ControlIdListingScope Scope
		{
			get
			{
				return ControlIdListingScope.Both;
			}
		}
	}
}
